package com.ynding.spring.idea.ddd.core.service.lottery.repository;

import com.ynding.spring.idea.ddd.core.model.lottery.domain.DrawLottery;

/**
 * @author ynding
 * @version 2022/9/3
 **/
public interface DrawLotteryRepository {

    /**
     * 根据id获取抽奖信息
     * @param lotteryId
     * @return
     */
    DrawLottery getDrawLotteryById(int lotteryId);

    /**
     * 数据库查询
     * @param lotteryId
     * @return
     */
    DrawLottery getDrawLotteryFromDB(int lotteryId);
}
